import { SET_SHOP_NUM, FED_LOG_OUT, SET_NOTIFICATION_UNREAD } from './reduxType';

// 设置购物车数量
export const setShopNum = (shopNum) =>{
	return $globalRedux.dispatch({
		type: SET_SHOP_NUM,
		shopNum,
	});
}

// 设置通知未读状态
export const setNotificationUnread = (notificationUnread) =>{
	return $globalRedux.dispatch({
		type: SET_NOTIFICATION_UNREAD,
		notificationUnread,
	});
}

export const toLogin = (shopNum) =>{
	return $globalRedux.dispatch({
		type: FED_LOG_OUT,
	});
}
	
